export default function _on(type, methods, act = 'action') {
    document.addEventListener(type, (e) => {
        const target = e.target;//获取目标
        const action = target.dataset[act];
        if (action === undefined || methods[action] === undefined) return;
        methods[action].call(target, e);
    });
}
